from common.sysinfo import SysInfo
class resource(SysInfo):
    def get_resource(self,num=1):
        while num <=3:
            ret_c,result = self.cmd('git clone http://gitee.com/yunmeng365524/anolis-sys-tests-res.git && echo $?',container_flag=1)
            if '0' not in result:
                num = num + 1
                continue
            else:
                break